package com.czwj.service.impl;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.czwj.dao.LevelMapper;
import com.czwj.entities.Level;
import com.czwj.service.LevelService;

/**
* @ClassName: LevelServiceImpl
* @Description: TODO
* @author H
* @date 2020年4月10日
*
*/
@Service
public class LevelServiceImpl implements LevelService{
	@Resource
	LevelMapper mapper;
	
	/** 
	* 
	* @param params
	* @return
	* @see com.czwj.service.LevelService#search(java.util.Map)
	*/
	@Override
	public List<Level> search(Map<String,Object> params){
		// TODO Auto-generated method stub
		return this.mapper.search(params);
	}
	
	/** 
	* 
	* @param params
	* @return
	* @see com.czwj.service.LevelService#getTotal(java.util.Map)
	*/
	@Override
	public int getTotal(Map<String,Object> params){
		// TODO Auto-generated method stub
		return this.mapper.getTotal(params);
	}
	
	/** 
	* 
	* @return
	* @see com.czwj.service.LevelService#getLevelList2()
	*/
	@Override
	public List<Level> getLevelList2(){
		// TODO Auto-generated method stub
		return this.mapper.getLevelList2();
	}
	
	/** 
	* 
	* @param levelId
	* @return
	* @see com.czwj.service.LevelService#selectByPrimaryKey(int)
	*/
	@Override
	public Level selectByPrimaryKey(int levelId){
		// TODO Auto-generated method stub
		return this.mapper.selectByPrimaryKey(levelId);
	}
	
	/** 
	* 
	* @param level
	* @return
	* @see com.czwj.service.LevelService#updateByPrimaryKeySelective(com.czwj.entities.Level)
	*/
	@Override
	public int updateByPrimaryKeySelective(Level level){
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(level);
	}
	
	/** 
	* 
	* @param level
	* @return
	* @see com.czwj.service.LevelService#insert(com.czwj.entities.Level)
	*/
	@Override
	public int insert(Level level){
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(level);
	}

	/** 
	* 
	* @param levelId
	* @return
	* @see com.czwj.service.LevelService#delete(int)
	*/
	@Override
	public int delete(int levelId){
		// TODO Auto-generated method stub
		return this.mapper.deleteByPrimaryKey(levelId);
	}
}
